
/*配置有关消息通知及时更新的文件 */
var ws = require("nodejs-websocket");
var http = require("http");
var fs = require("fs");
const express = require('express')
const { resourceUsage } = require('process')

var clientRouter = express.Router()

var axios = require("axios");

clientRouter.get('/client', function (req, res) {
    res.render("front-stage/client.html")
})

var app = ws.createServer(function (conn) {
    console.log("connection sussess");
    conn.on("text", function (str) {
        server.connections.forEach(function (connection) {
            connection.sendText(str);
        });
    });
});

module.exports = clientRouter;